<?php defined('APP_PATH') or exit('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑招聘</title>
<link rel="stylesheet" type="text/css" href="vonuo/static/css/vonuo.css">
<script type="text/javascript" src="vonuo/static/js/jquery.min.js"></script>
<script type="text/javascript" src="vonuo/static/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="comm/KEditor/kindeditor.js"></script>
<script type="text/javascript" src="comm/KEditor/lang/zh_CN.js"></script>
<script type="text/javascript">
KindEditor.ready(function(K){
	K.create('textarea[name="info"]', {
		themeType : 'simple',
		resizeType : 1,
		uploadJson : 'comm/KEditor/upload_json.php',
		fileManagerJson : 'comm/KEditor/file_manager_json.php',
		allowFileManager : true,
		afterBlur: function(){this.sync();}
	});
});
function check(){
	if($.trim($("input[name='job']").val()) == ''){
		$("#need_job").html("<strong style='color:red;'>请输入职位名称！</strong>");
		$("input[name='job']").focus();
		return false;
	}else{
		$("#need_job").html("<strong style='color:red;'>√</strong>");
	}
	return true;
}
</script>
</head>

<body>
<div class="gs_wraper gs_p_l0">
	<div class="title">
		<a href="<?php echo spUrl('zpin','lis');?>">招聘列表</a>
		<a href="javascript:;" class="hover">编辑招聘</a>
	</div>
	<form action="<?php echo spUrl('zpin','doupd',array('id'=>$zpin['id']));?>" method="post">
	<div class="tab_box" id="con_one_1">
		<table border="0" cellspacing="0" cellpadding="0" class="table_btm">
			<tr>
				<td class="txt_right txt_s_blue">职位名称：</td>
				<td>
					<input name="job" value="<?php echo $zpin['job'];?>" type="text" class="blue_input input_w_175" />
					<span id="need_job"></span>
				</td>
			</tr>
			<tr>
				<td class="txt_right txt_s_blue">开始日期：</td>
				<td><input id="inputtime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="stime" type="text" readonly value="<?php echo date('Y-m-d', $zpin['stime']);?>" class="blue_input input_w_175" /></td>
			</tr>
			<tr>
				<td class="txt_right txt_s_blue">结束日期：</td>
				<td><input id="inputtime2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="etime" type="text" readonly value="<?php echo date('Y-m-d',  $zpin['etime']);?>" class="blue_input input_w_175" /></td>
			</tr>
			<tr>
				<td class="txt_right txt_s_blue">招聘人数：</td>
				<td><input name="num" type="text" value="<?php echo $zpin['num'];?>" class="blue_input input_w_175 f_left"  /></td>
			</tr>
			<tr>
				<td class="txt_right txt_s_blue">工资待遇：</td>
				<td><input name="wage" type="text" value="<?php echo $zpin['wage'];?>" class="blue_input input_w_175 f_left"  /></td>
			</tr>
			<tr>
				<td class="txt_right txt_s_blue" valign="top">详细信息：</td>
				<td><textarea name="info" style="width:700px;height:350px;visibility:hidden;"><?php echo $zpin['info'];?></textarea></td>
			</tr>
			<tr>
				<td></td>
				<td><a href="javascript:;" onclick="if(check()){$('form').submit();}" class="sure_submit f_left time">确 定</a><a href="<?php echo spUrl('zpin','lis');?>" class="return_btn f_left">返 回</a></td>
			</tr>
		</table>
	</div>
	</form>
</div>
</body>
</html>